<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UFT-8">
<title>用户管理</title>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script src="../../hplus/js/jquery.min.js"></script>
<link rel="stylesheet" href="../../ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="../../ztree/js/jquery.ztree.core.js"></script>
<link rel="stylesheet" type="text/css" href="../../easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../easyui/themes/icon.css">
<script type="text/javascript" src="../../easyui/jquery.easyui.min.js?1=10" charset=UTF-8"></script>
<style type="text/css">
	.tabs
	{
		font-family:微软雅黑;
		font-size:14px;
		height: 36px;
		background-color: rgb(224,236,255);
		width: 100%;
	}
	.tab-btn
	{
		float:left;
		margin-top:5px;
		line-height:30px;
		border: 1px solid rgb(186,219,234);
		margin-left:5px;
		height: 30px;
		padding-right: 5px;
		padding-left: 25px;
		border-top-left-radius:0.3em;
		border-top-right-radius:0.3em;
		cursor: pointer;
		color: rgb(26,110,187);
	}
	.tab-btn-active
	{
		border-bottom: 1px solid white;
	}
	
	.form-edit
	{
		border-collapse:collapse;
		width: 100%;
	}
	.form-edit td
	{
		background-color: rgb(241,241,239);
		border: 1px solid rgb(228,226,223);
		padding-left: 5px;
	}
	.btn
	{
		padding-left: 5px;
		padding-right: 5px;
		height: 30px;
		line-height: 30px;
		text-align: center;
		border-radius:5px;
		color: white;
		background-color: rgb(0,197,228);
		cursor: pointer;
		float: left;
		margin:5px 5px 5px 5px;
		font-weight: bold;
	}
	.btn:hover
	{
		background-color: rgb(0,170,228);
	}
	.icon-dandy{
		background:url('icons/1_close.png') no-repeat;
	}
	.a-btn
	{
		display: inline-block;
		width: 50px;
		height: 25px;
		line-height: 25px;
		border-radius:4px;
		vertical-align: middle;
		text-align: center;
		background-color: rgb(0,197,228);
		font-weight: bold;
		color: white;
	}
</style>
</head>
<body class="easyui-layout">
	<div data-options="region:'center'" style="overflow-x:hidden;padding: 3px;">
		<div id="tt" class="easyui-tabs" style="width: 100%; height: 100%;overflow-x:hidden;overflow-y:hidden;">
			<div title="用户信息新建" style="padding: 3px">
				<form id="userForm">
					<table class="form-edit">
						<tr>
							<td width="10%;">
								<font color="red">*</font>用户账号：
							</td>
							<td width="40%">
								<input id="account" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								<font color="red">*</font>用户密码：
							</td>
							<td width="40%">
								<input id="password" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								<font color="red">*</font>用户名称：
							</td>
							<td width="40%">
								<input id="name" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户电话：
							</td>
							<td width="40%">
								<input id="phone" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户性别：
							</td>
							<td width="40%">
								<input id="sex" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户生日：
							</td>
							<td width="40%">
								<input id="birthDay" class="easyui-datebox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户EMAIL：
							</td>
							<td width="40%">
								<input id="email" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户职位：
							</td>
							<td width="40%">
								<input id="position" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户地址：
							</td>
							<td width="40%">
								<input id="address" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								状态：
							</td>
							<td width="40%">
								<input id="status" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								归属机构：
							</td>
							<td width="40%">
								<input id="orgId" class="easyui-combotree" style="width:200px;height:32px"">
							</td>
							<td width="10%;" colspan="2">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								使用终端：
							</td>
							<td width="40%">
								<input id="terminalId" class="easyui-combobox" style="width:200px;height: 32px;">
							</td>
							<td width="10%;">
								<font color="red">*</font>专家池设定：
							</td>
							<td width="40%">
								<input id="expertPool" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
								<a onclick="toSetExpertPool('new')" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">设置</a>
							</td>
						</tr>
						<tr>
							<td width="10%">
								知识简述：
							</td>
							<td colspan="3">
								<input id="knowledge" data-options="multiline:true" class="easyui-textbox" style="width:830px;height:64px">
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div>
									<div id="save" class="btn" style="width: 50px;">提交</div>
									<div id="reset" class="btn" style="width: 50px;">重置</div>
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div title="用户信息管理" style="padding: 3px;overflow: hidden;">
				<div class="easyui-layout" data-options="fit:true">
					<div data-options="region:'north',border:false" style="height:56px">
						<form id="conditionForm">
							<table class="form-edit">
								<tr>
									<td width="10%;">
										归属机构名称：
									</td>
									<td width="40%">
										<input id="i_orgName" class="easyui-textbox" style="width:200px;height:22px">
									</td>
									<td width="10%;">
										用户名称：
									</td>
									<td width="40%">
										<input id="i_name" class="easyui-textbox" style="width:200px;height:22px">
									</td>
								</tr>
								<tr>
									<td width="10%;">
										用户电话：
									</td>
									<td width="40%">
										<input id="i_phone" class="easyui-textbox" style="width:200px;height:22px">
									</td>
									<td width="10%;">
										知识简述：
									</td>
									<td width="40%">
										<input id="i_knowledge" class="easyui-textbox" style="width:200px;height:22px">
									</td>
								</tr>
							</table>
						</form>
					</div>
					<div data-options="region:'center',border:false">
						<table id="userGrid" class="easyui-datagrid"
								data-options="method:'get',rownumbers:true,
								toolbar:toolbar,pagination: true,fit:true,fitColumns:true">
							<thead>
								<tr>
									<th field="ck" checkbox="true"></th>
									<th data-options="field:'id',width:80,hidden:true">id</th>
									<th data-options="field:'parentOrgCode',width:100">归属机构编号</th>
									<th data-options="field:'parentOrgName',width:100">归属机构名称</th>
									<th data-options="field:'account',width:100">用户账号</th>
									<th data-options="field:'name',width:100">用户名称</th>
									<th data-options="field:'phone',width:100">用户手机</th>
									<th data-options="field:'email',width:100">用户EMAIL</th>
									<th data-options="field:'terminalId',width:100">使用终端</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
			<div title="用户信息修改" style="padding: 3px">
				<form id="updateForm">
					<table class="form-edit">
						<tr style="display: none;">
							<td>
								<input id="u_id" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户账号：
							</td>
							<td width="40%">
								<input id="u_account" data-options="readonly:true" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户密码：
							</td>
							<td width="40%">
								<input id="u_password" data-options="readonly:true" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								<font color="red">*</font>用户名称：
							</td>
							<td width="40%">
								<input id="u_name" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户电话：
							</td>
							<td width="40%">
								<input id="u_phone" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户性别：
							</td>
							<td width="40%">
								<input id="u_sex" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户生日：
							</td>
							<td width="40%">
								<input id="u_birthDay" class="easyui-datebox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户EMAIL：
							</td>
							<td width="40%">
								<input id="u_email" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								用户职位：
							</td>
							<td width="40%">
								<input id="u_position" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								用户地址：
							</td>
							<td width="40%">
								<input id="u_address" class="easyui-textbox" style="width:200px;height:32px">
							</td>
							<td width="10%;">
								状态：
							</td>
							<td width="40%">
								<input id="u_status" class="easyui-textbox" style="width:200px;height:32px">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								归属机构：
							</td>
							<td width="40%">
								<input id="u_orgId" class="easyui-combotree" style="width:200px;height:32px">
							</td>
							<td width="10%;" colspan="2">
							</td>
						</tr>
						<tr>
							<td width="10%;">
								使用终端：
							</td>
							<td width="40%">
								<input id="u_terminalId" class="easyui-combobox" style="width:200px;height: 32px;">
							</td>
							<td width="10%;">
								<font color="red">*</font>专家池设定：
							</td>
							<td width="40%">
								<input id="u_expertPool" class="easyui-textbox" data-options="required:true" style="width:200px;height:32px">
								<a onclick="toSetExpertPool('edit')" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">设置</a>
							</td>
						</tr>
						<tr>
							<td width="10%">
								知识简述：
							</td>
							<td colspan="3">
								<input id="u_knowledge" data-options="multiline:true" class="easyui-textbox" style="width:830px;height:64px">
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div>
									<div id="update" class="btn" style="width: 50px;">提交</div>
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div title="用户批量导入" data-options="iconCls:'icon-dandy'"
				style="padding: 3px">
				<div class="easyui-layout" data-options="fit:true">
					<div data-options="region:'north',border:false" style="height:36px">
						<form id="uploadForm" action="${ctx}/user/exportUsers" method="post" enctype="multipart/form-data">
							<table class="form-edit" style="width: 100%;">
								<tr>
									<td>
										用户批量导入（*.xlsx\*.xls）：
										<input id="file" class="easyui-filebox" name="file" data-options="prompt:'请选择文件...'" style="width:220px;">
										&nbsp;&nbsp;
										<a style="color: blue;cursor: pointer;" onclick="exportUsers()">导入文件</a>
										&nbsp;&nbsp;
										<a style="color: blue;cursor: pointer;" onclick="downloadTemp()">下载模板</a>
									</td>
								</tr>
							</table>
						</form>
					</div>
					<div data-options="region:'center',border:false">
						<table id="userTempGrid" class="easyui-datagrid"
								data-options="method:'get',rownumbers:true,
								toolbar:toolbarTemp,fit:true,fitColumns:true">
							<thead>
								<tr>
									<th field="ck" checkbox="true"></th>
									<th data-options="field:'id',width:80,hidden:true">id</th>
									<th data-options="field:'parentOrgCode',width:100">归属机构编号</th>
									<th data-options="field:'parentOrgName',width:100">归属机构名称</th>
									<th data-options="field:'account',width:100">用户账号</th>
									<th data-options="field:'name',width:100">用户名称</th>
									<th data-options="field:'phone',width:100">用户手机</th>
									<th data-options="field:'email',width:100">用户EMAIL</th>
									<th data-options="field:'terminalId',width:100">使用终端</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="w" class="easyui-window" title="专家选择" data-options="iconCls:'icon-save'" closed="true" style="width:700px;height:330px;padding:5px;">
		<div class="easyui-layout" data-options="fit:true">
			<table id="expertGrid" class="easyui-datagrid"
					data-options="method:'get',rownumbers:true,
					toolbar:toolbarWin,fit:true,fitColumns:true,url:'${ctx}/expert/getExpertList'">
				<thead>
					<tr>
						<th field="ck" checkbox="true"></th>
						<th data-options="field:'id',width:80,hidden:true">id</th>
						<th data-options="field:'name',width:100">专家名称</th>
						<th data-options="field:'account',width:100">专家账号</th>
						<th data-options="field:'phone',width:100">专家电话</th>
						<th data-options="field:'position',width:100">专家职位</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</body>
<script type="text/javascript">
var openWinAction = "new";

$(document).ready(function() {
	$('#userGrid').datagrid('getPager').pagination({  
        pageSize: 15,//每页显示的记录条数，默认为10    
        pageList: [15, 30, 50],//可以设置每页记录条数的列表    
        beforePageText: '第',//页数文本框前显示的汉字    
        afterPageText: '页    共 {pages} 页',  
        displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录',  
        onSelectPage:function(pageNum, pageSize){
        	query(pageNum,pageSize);
        }
    }); 
	
	$('#tt').tabs('select', "用户信息管理");
	
	//查询
	query();
	
	initCombos();
});

function initCombos(){
	$('#terminalId').combobox({
	    url:'${ctx}/terminal/getTerminalForCombo',
	    valueField:'id',
	    textField:'mac'
	});
	$('#u_terminalId').combobox({
	    url:'${ctx}/terminal/getTerminalForCombo',
	    valueField:'id',
	    textField:'mac'
	});
	
	$('#orgId').combotree({
	    url: '${ctx}/org/getOrgTreeForCombo'
	});
	
}

function query(pageNum,pageSize){
	if(!pageNum){
		pageNum = 1;
	}
	if(!pageSize){
		pageSize = 15;
	}
	
	$.ajax({
        type: "post",
        dataType: "json",
        url: '${ctx}/user/getUserList',
        data:{
        	pageNum:pageNum,
        	pageSize:pageSize,
        	orgName:$("#i_orgName").val(),
        	phone:$("#i_phone").val(),
        	name:$("#i_name").val(),
        	knowledge:$("#i_knowledge").val()
        },
        success: function (data) {
        	$('#userGrid').datagrid('loadData', data);
        },
		error:function(){
		}
    });
	
}

$("#save").on("click",function(){
	$.messager.confirm('确认提示', '确定保存?', function(r){
		if (r){
			$.ajax({
		        type: "post",
		        dataType: "json",
		        url: '${ctx}/user/addUser',
		        data:{
		        	account:$("#account").val(),
		        	password:$("#password").val(),
		        	name:$("#name").val(),
		        	phone:$("#phone").val(),
		        	sex:$("#sex").val(),
		        	birthDay:$("#birthDay").datebox("getValue"),
		        	email:$("#email").val(),
		        	position:$("#position").val(),
		        	address:$("#address").val(),
		        	status:$("#status").val(),
		        	orgId:$("#orgId").val(),
		        	knowledge:$("#knowledge").val(),
		        	terminalId:$("#terminalId").val(),
		        	expertPool:$("#expertPool").val()
		        },
		        success: function (data) {
		        	if(data.status=="1"){
		        		$('#userForm').form('clear');
			        	query();
		        	}
		        	$.messager.alert('消息',data.msg,'info');
		        },
				error:function(){
				}
		    });
		}
	});
});

$("#update").on("click",function(){
	if($("#u_id").val()==null || $("#u_id").val()==""){
		$.messager.alert('消息',"请选择修改记录",'info');
		return ;
	}
	
	$.messager.confirm('确认提示', '确定修改?', function(r){
		if (r){
			$.ajax({
		        type: "post",
		        dataType: "json",
		        url: '${ctx}/user/updateUser',
		        data:{
		        	id:$("#u_id").val(),
		        	account:$("#u_account").val(),
		        	password:$("#u_password").val(),
		        	name:$("#u_name").val(),
		        	phone:$("#u_phone").val(),
		        	sex:$("#u_sex").val(),
		        	birthDay:$("#u_birthDay").datebox("getValue"),
		        	email:$("#u_email").val(),
		        	position:$("#u_position").val(),
		        	address:$("#u_address").val(),
		        	status:$("#u_status").val(),
		        	orgId:$("#u_orgId").val(),
		        	knowledge:$("#u_knowledge").val(),
		        	terminalId:$("#u_terminalId").val(),
		        	expertPool:$("#u_expertPool").val()
		        },
		        success: function (data) {
		        	query();
		        	$.messager.alert('消息',data.msg,'info');
		        },
				error:function(){
				}
		    });
		}
	});
	
});

$("#reset").on("click",function(){
	$('#userForm').form('clear');
});

function deleteUsers(){
	var rows = $('#userGrid').datagrid('getSelections');
	if(rows.length < 1){
		$.messager.alert('消息','请选择一条记录','info');
	}
	
	$.messager.confirm('确认提示', '确定删除?', function(r){
		if (r){
			var userIds = [];
			for(var i=0; i<rows.length; i++){
				userIds.push(rows[i].id);
			}
			$.ajax({
		        type: "post",
		        dataType: "json",
		        url: '${ctx}/user/deleteUsers',
		        data:{
		        	"userIds":userIds.join(",")
		        },
		        success: function (data) {
		        	if(data.status=='1'){
		        		$.messager.alert('消息',data.msg,'info');
		        		query();
		        	}
		        },
				error:function(){
				}
		    });
		}
	});
}

function exportUsers(){
	$.messager.confirm('确认提示', '确定导入?', function(r){
		if (r){
			$.ajax({
				url : '${ctx}/user/exportUsers',
				type : 'POST',
				cache : false,
				data : new FormData($('#uploadForm')[0]),
				processData : false,
				contentType : false
			}).done(function(res) {
				if(res.status=="1"){
					$.messager.alert('消息',res.msg,'info');
					$('#userTempGrid').datagrid('loadData', JSON.parse(res.data));
				}else{
					$.messager.alert('消息',res.msg,'error');
				}
			}).fail(function(res) {
				$.messager.alert('消息',"导入失败",'error');
			});
		}
	});
}

function downloadTemp() {
	window.location.href = "${ctx}/user/downloadTemp";
}

function confirmTempUsers(){
	var rows = $('#userTempGrid').datagrid('getSelections');
	if(rows.length < 1){
		$.messager.alert('消息','请选择一条记录','info');
		return ;
	}
	
	var userList = new Array();

	for(var i=0; i<rows.length; i++){
		var user = new Object();
		user.account = rows[i].account;
		user.password = rows[i].password;
		user.name = rows[i].name;
		user.phone = rows[i].phone;
		user.sex = rows[i].sex;
		user.birthDay = rows[i].birthDay;
		user.email = rows[i].email;
		user.position = rows[i].position;
		user.address = rows[i].address;
		user.terminalId = rows[i].terminalId;
		user.knowledge = rows[i].knowledge;
		userList.push(user);
	}
	
	$.ajax({
        type: "post",
        dataType: "json",
        url: '${ctx}/user/confirmTempUsers',
        data:{
        	"userListString":JSON.stringify(userList)
        },
        success: function (data) {
        	if(data.status=='1'){
        		query();
        		$.messager.alert('消息',data.msg,'info');
        		//成功了删除勾选的记录
                for(var i=0; i<rows.length; i++){
                	var index = $('#userTempGrid').datagrid('getRowIndex', rows[i]);//获取某行的行号          
                    $('#userTempGrid').datagrid('deleteRow', index);  
            	}
        	}else{
        		$.messager.alert('消息',data.msg,'error');
        	}
        },
		error:function(){
		}
    });
	
}

function toUpdate(){
	var rows = $('#userGrid').datagrid('getSelections');
	if(rows.length < 1){
		$.messager.alert('消息','请选择一条记录','info');
		return ;
	}
	if(rows.length > 1){
		$.messager.alert('消息','最多选择一条记录','info');
		return ;
	}
	$('#updateForm').form('clear');
	for(var i=0; i<rows.length; i++){
		$("#u_id").textbox('setValue', rows[i].id);
		$("#u_account").textbox('setValue', rows[i].account);
		$("#u_password").textbox('setValue', rows[i].password);
		$("#u_name").textbox('setValue', rows[i].name);
		$("#u_phone").textbox('setValue', rows[i].phone);
		$("#u_sex").textbox('setValue', rows[i].sex);
		$("#u_birthDay").datebox("setValue",rows[i].birthDay);
		$("#u_email").textbox('setValue', rows[i].email);
		$("#u_position").textbox('setValue', rows[i].position);
		$("#u_address").textbox('setValue', rows[i].address);
		$('#u_terminalId').combobox('setValue', rows[i].terminalId);
		$("#u_knowledge").textbox('setValue', rows[i].knowledge);
		$("#u_expertPool").textbox('setValue', rows[i].expertPool);
		$("#u_orgId").combotree('setValue', rows[i].orgId);
	}
	
	setValueForCombo();
	
	$('#tt').tabs('select', "用户信息修改");
}

function setValueForCombo(){
	$.ajax({
        type: "post",
        dataType: "json",
        url: '${ctx}/org/getOrgTreeForCombo',
        data:{
        },
        success: function (data) {
        	$('#u_orgId').combotree('loadData',
        			data);
        },
		error:function(){
		}
    });
	
	$('#u_orgId').combotree('setValue', $("#u_orgId").val()); 
}

function toSetExpertPool(action){
	$('#w').window('open');
	openWinAction = action;
	var ids="";
	if(action=="new"){
		ids = $("#expertPool").val();
	}else{
		ids = $("#u_expertPool").val();
	}
	if(ids!=null && ids.length>0){
		var idArray = ids.split(",");
		for(var i=0;i<idArray.length;i++){
			$('#expertGrid').datagrid('selectRecord',idArray[i]);
		}
	}else{
		$('#expertGrid').datagrid('unselectAll');
	}
}

function setExpertPool(){
	var rows = $('#expertGrid').datagrid('getSelections');
	if(rows.length < 1){
		$.messager.alert('消息','请选择一条记录','info');
		return ; 
	}
	var expertIds = [];
	var expertNames = [];
	for(var i=0; i<rows.length; i++){
		expertIds.push(rows[i].id);
		expertNames.push(rows[i].name);
	}
	if(openWinAction=="new"){
		$("#expertPool").textbox('setValue', expertIds.join(","));
		$("#expertPool").textbox('setText', expertNames.join(","));
	}else{
		$("#u_expertPool").textbox('setValue', expertIds.join(","));
		$("#u_expertPool").textbox('setText', expertNames.join(","));
	}
	
	$('#w').window('close');
}

var toolbar = [ {
	text : '查询',
	iconCls : 'icon-search',
	handler : function() {
		query();
	}
}, '-', {
	text : '重置',
	iconCls : 'icon-undo',
	handler : function() {
		$('#conditionForm').form('clear');
	}
}, '-', {
	text : '修改',
	iconCls : 'icon-edit',
	handler : function() {
		toUpdate();
	}
}, '-', {
	text : '删除',
	iconCls : 'icon-remove',
	handler : function() {
		deleteUsers();
	}
} ];

var toolbarTemp = [ {
	text : '确定',
	iconCls : 'icon-ok',
	handler : function() {
		confirmTempUsers();
	}
},'-'];

var toolbarWin = [ {
	text : '确定',
	iconCls : 'icon-ok',
	handler : function() {
		setExpertPool();
	}
},'-'];

</script>
</html>
